package com.yao.club.reposittory;

import com.yao.club.entity.dto.GoodsCommentLikeRecord;
import com.yao.club.entity.dto.PostsCommentLikeRecord;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface GoodsCommentLikeRecordRepository extends JpaRepository<GoodsCommentLikeRecord, Long> {


    List<GoodsCommentLikeRecord> findGoodsCommentLikeRecordByGoodsCommentIdAndUserId(long goodsCommentId, long memberId);

    void deleteGoodsCommentLikeRecordByGoodsCommentId(Long commentId);
}
